ab4fefe992a26577f4fea150be2b2de813a28a2f,src/main/java/com/helger/schematron/pure/bound/xpath/PSXPathBoundSchema.java,PSXPathBoundSchema,bind,#,438
Before Change
// Get all variables that are defined in the specified phase
for (final Map.Entry <String, String> aEntry : aPhase.getAllLetsAsMap ().entrySet ())
if (aGlobalVariables.add (aEntry).isUnchanged ())
warn (aSchema, "Duplicate let with name '" +
aEntry.getKey () +
"' in <phase> with name '" +
getPhaseID () +
"' - second definition is ignored");
}
final XPath aXPathContext = _createXPathContext ();
After Change
if (aSchema.hasAnyLet ())
for (final Map.Entry <String, String> aEntry : aSchema.getAllLetsAsMap ().entrySet ())
if (aGlobalVariables.add (aEntry).isUnchanged ())
error (aSchema, "Duplicate <let> with name '" + aEntry.getKey () + "' in global <schema>");
if (aPhase != null)
{
// Get all variables that are defined in the specified phase
for (final Map.Entry <String, String> aEntry : aPhase.getAllLetsAsMap ().entrySet ())
if (aGlobalVariables.add (aEntry).isUnchanged ())
error (aSchema, "Duplicate <let> with name '" +
aEntry.getKey () +
"' in <phase> with name '" +
getPhaseID () +
"'");
}
final XPath aXPathContext = _createXPathContext ();